package com.goktech.shopping.controller;

import com.goktech.shopping.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author: DxlinY
 * @apiNote:
 * @date: 2020/10/12
 * @time: 16:46
 */
@Controller
//@RestController
@RequestMapping("test")
public class TestController {


    @Autowired
    private TestService testService;

    @RequestMapping("hello")
    @ResponseBody
    public String hello() {
        return testService.hello();
    }

//    @RequestMapping(value = "getClassById", method = {RequestMethod.GET})
//    @ResponseBody
//    public TbClass getClass(int id) {
//        return testService.getById(id);
//    }
}
